<md-dialog aria-label="Link" class="linkselector-dialog">
    <div layout="column" class="linkselector">

        <div class="toolbar">
            <div>@lien</div>
        </div>
        
        <div class="header">
            <strong>@{{login}}</strong>
        </div>

        <md-autocomplete
            md-no-cache
            md-selected-item="login"
            md-search-text="loginText"
            md-items="item in search(loginText)"
            md-item-text="item.login"
            placeholder="Login">
            <span md-highlight-text="loginText">{{item.login}}</span>
        </md-autocomplete>

    </div>
    <div class="md-actions" layout layout-padding>
        <span flex></span>
        <md-button ng-click="cancel()">Annuler</md-button>
        <md-button ng-click="answer('valider')" class="md-primary">Valider</md-button>
    </div>
</md-dialog>